function ModuleViewFileManage(doc, container, width, height, operator, now, options) {
  this._doc = doc;
  this._container = container;
  this._width = width;
  this._height = height;
  this._operator = operator;
  this._now = now;
  this._options = options;

  this._item = (options && options.item) ? options.item : null;
  this._selected = (options && options.selected) ? options.selected : [];
  this._callbackFunc = (options && options.callbackFunc) ? options.callbackFunc : null;
  this._others = (options && options.others) ? options.others : [];

  this._createElements();
}

ModuleViewFileManage.prototype._createElements = function() {
  var _self = this;
  this._gui = new ViewFileManage(this._doc, this._container, this._width, this._height, this._operator, this._now, this._options)._gui;

  /*-文件下载、链接-*/
  if (this._item.dirId) {
    this._gui.icon.src = 'image/manage/folder.png';
    this._gui.icon.style.cursor = 'pointer';
    this._gui.icon.onclick = function() { parent.location.href = '?t=manage&opts=' + MiscUtils.encode({ d: _self._item.dirId }) };
    this._gui.tools.download.style.display = 'none';
    var span = document.createElement('span');
    span.style.fontSize = '12px';
    span.style.color = '#000';
    span.style.fontFamily = 'Arail';
    span.appendChild(this._doc.createTextNode(NPFileUtils.cutStr(this._item.name, 8)));
    this._gui.name.appendChild(span);
  } else {
    this._gui.icon.src = 'image/manage/file.png';
    this._gui.tools.download.onclick = function() {  new RequestUtils()._custom('downloadFile', { file: _self._item }, function(result, params) { if (result) { 
                                                                                                                                                    window.open('download.php?action=' + MiscUtils.encode({t: _self._item.trueName, n: _self._item.name, a: _self._operator.account }), '_blank');
                                                                                                                                                  }
                                                                                                                                                }, { pos: DOMUtils.findPos(this), doc: _self._doc });
                                                  };
    var span = document.createElement('span');
    span.style.fontSize = '12px';
    span.style.color = '#000';
    span.style.fontFamily = 'Arail';
    span.appendChild(this._doc.createTextNode(NPFileUtils.cutStr(this._item.name, 8)));
    this._gui.name.appendChild(span);
    this._gui.name.appendChild(document.createTextNode('('));
    var link = document.createElement('a');
    link.href = '#';
    link.appendChild(document.createTextNode('Link'));
    var addr = Constant.DOMAIN + Constant.PATH + '/' + 'download.php?action=' + MiscUtils.encode({t: _self._item.trueName, n: _self._item.name, a: _self._operator.account });
    link.onclick = function() { var pos = [window.screen.width / 2, window.screen.height / 3];
                                var tmp = new ModulePopupBoxSimple(parent.document, parent.document.body, null, null, null, null, {pos: pos});
                                MiscUtils.alert(tmp, addr);
                                //MiscUtils.dialog(tmp, MiscUtils.span(NPFileUtils.breakWord(addr, 50)), function() { tmp._close(); }, null);
                                return false;
                              };
    this._gui.name.appendChild(link);
    this._gui.name.appendChild(document.createTextNode(')'));
  }
  /*-文件重命名操作-*/
  this._gui.tools.rename.onclick = function() { var name = window.prompt("NAME", _self._item.name);
                                                if (name && name != '') {
                                                  if (NPFileUtils.duplicates(_self._others, name)) {
                                                    window.alert('DUPLICAED NAME');
                                                    return;
                                                  }
//                                                  if (NPFileUtils.limitLNP(name)) {
//                                                    window.alert('Only Allow Letters, Numbers Or Decimal Point');
//                                                    return;
//                                                  }
                                                  new RequestUtils()._custom('alter', { name: name, file: _self._item }, function(result, params) { if (result) { _self._callbackFunc(); } }, { pos: DOMUtils.findPos(this), doc: _self._doc });
                                                } else if (name == '') {
                                                  window.alert('CAN NO BE EMPTY');
                                                }
                                              };

  /*-文件复制操作-*/
  this._gui.tools.copyTo.onclick = function() { var pos = [window.screen.width / 3, window.screen.height / 9];
                                                var tmp = new ModulePopupBox(parent.document, parent.document.body, 474, 414, _self._operator, _self._now,  { pos: pos, title: 'Copy To' });
                                                new ModuleCopyTo(parent.document, tmp._gui.panel, 400, 600, _self._operator, _self._now, { callbackFunc: function() { _self._callbackFunc(); }, selected: [_self._item], popupBox: tmp });
                                              };
  /*-文件移动操作-*/
  this._gui.tools.moveTo.onclick = function() { var pos = [window.screen.width / 3, window.screen.height / 9];
                                                var tmp = new ModulePopupBox(parent.document, parent.document.body, 474, 414, _self._operator, _self._now, { pos: pos, title: 'Move To' });
                                                new ModuleMoveTo(parent.document, tmp._gui.panel, 468, 414, _self._operator, _self._now, { callbackFunc: function() { _self._callbackFunc(); }, selected: [_self._item], popupBox: tmp });
                                              };
  /*-文件删除操作-*/
  this._gui.tools.remove.onclick = function() { var confirm = window.confirm('CONFIRM DELETE?');
                                                if (confirm) { 
                                                  new RequestUtils()._custom('delete', { files: [_self._item] }, function(result, params) { if (result) { _self._callbackFunc(); } }, { pos: DOMUtils.findPos(this), doc: _self._doc }); 
                                                }
                                              };
  /*-文件选中操作-*/
  this._gui.tools.selected.onclick = function() { if (this.checked ==  true) {
                                                    parent.document._goods[parent.document._goods.length] = _self._item;
                                                  } else {
                                                    MiscUtils.remove(parent.document._goods, _self._item, 'trackId');
                                                  }
                                                };

};